package com.haifeng.wdsh.common.base.vo;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.HashSet;
import java.util.Set;

/**
 * 用户表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class UserVo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String username;

    private String password;

    private Long deptId;

    private Boolean gender;

    private String mobilePhone;

    private String wechat;

    private String email;

    private String address;

    private String idCardNo;

    private Boolean accountNonExpired;

    private Boolean credentialsNonExpired;

    private Boolean accountNonLocked;

    private String remark;

    private Boolean enabled;

    private LocalDateTime createDatetime;

    private LocalDateTime updateDatetime;

    private Boolean deleteFlag;

    private Integer version;

    private Set<PermissionVo> permissions = new HashSet<>();
}
